<template>
  <div>Son</div>
  <p>{{ modelValue }}</p>
  <button @click="$emit('update:modelValue', modelValue + 1)">更新</button>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Son",
  props: {
    modelValue: {
      type: Number,
      required: true,
    },
  },
  emits: ["update:modelValue"],
});
</script>

<style></style>
